package com.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Dish;
import com.example.Dto.DishDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface IDishService {
    public List<Dish> getByCategoryId(Long id);
    public void save(DishDto dishDto);
    public Page<DishDto> page(Integer page,Integer pageSize,String name);
    public DishDto getById(Long id);
    public void update(DishDto dishDto);
//    public List<Dish> list(Dish dish);
    public List<DishDto> list(Dish dishDto);
}
